package cn.xizikelif.org.service.impl;

import cn.xizikelif.basic.service.impl.BaseServiceImpl;
import cn.xizikelif.org.domain.Employee;
import cn.xizikelif.org.mapper.EmployeeMapper;
import cn.xizikelif.org.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
public class EmployeeServiceImpl extends BaseServiceImpl<Employee> implements IEmployeeService {
        @Autowired
        private EmployeeMapper mapper;



        @Override
        public List<Employee> findByOne(Long id) {
                return mapper.findByOne(id);
        }
}
